﻿using ITSM.Model.Entity;
using ITSM.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ITSM.Service
{
    public interface IDemandTypeLink
    {
        /// <summary>
        /// 设置IT人员和类别关系
        /// </summary>
        /// <param name="RYD_UserId">IT人员编号</param>
        /// <param name="RYD_Company">公司编号</param>
        /// <param name="RYD_DemandTypeNo">类别编号</param>
        /// <returns></returns>
        bool SetDemandTypeLink(string RYD_UserId,string RYD_Company,int[] RYD_DemandTypeNo);
        /// <summary>
        /// 增加IT人员和类别关系
        /// </summary>
        /// <param name="RYD_UserId">IT人员编号</param>
        /// <param name="RYD_Company">公司编号</param>
        /// <param name="RYD_DemandTypeNo">类别编号</param>
        /// <returns></returns>
        bool AddDemandTypeLink(string RYD_UserId,string RYD_Company,int[] RYD_DemandTypeNo);
        /// <summary>
        /// 解除IT人员和类别关系
        /// </summary>
        /// <param name="RYD_UserId">IT人员编号</param>
        /// <param name="RYD_Company">公司编号</param>
        /// <param name="RYD_DemandTypeNo">类别编号</param>
        /// <returns></returns>
        bool DeleteDemandTypeLink(RYD_RegIt demandTypeLink);
        /// <summary>
        /// 获取指定公司，指定类别的人员类别绑定信息
        /// </summary>
        /// <param name="RYD_Company">公司编号</param>
        /// <param name="RYD_DemandTypeNo">类别编号</param>
        /// <returns></returns>
        List<RYD_DemandTypeLink> GetDemandTypeLink(string RYD_Company,string[] RYD_DemandTypeNo);
        /// <summary>
        /// 获取指定公司，指定人员的类别绑定信息
        /// </summary>
        /// <param name="RYD_Company">公司编号</param>
        /// <param name="RYD_UserId">人员编号</param>
        /// <returns></returns>
        List<RYD_DemandTypeLink> GetUserTypeLink(RYD_DemandTypeLink typeLink);
    }
}
